home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 2_10.lha / 2_10 / 2_10a.c next >
Text File  |  1993-08-08  |  324b  |  16 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. onst one = 1;
  6. nt *p1 = &one;
  7. include <memory.h>
  8. oid chconst()
  9.  
  10.    one = 2;
  11.    *p1 = 2;
  12.    int *p2 = (int *) &one;
  13.    int memint = 2;
  14.    memcpy((void*)&one, &memint, sizeof (int));
  15.  
  16.